<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue.js"></script>
    <style>
            [v-cloak]{
        display:none
    }
    </style>
</head>
<body>
    <!--
        挂载v-cloak之后 对应设置css中的 [v-cloak]的属性display为none 这样就会在没有挂载Vue之前不会显示标签
    -->
    <div id="app">

        <p v-cloak>{{count}}</p>
        <button @click="count++"></button>
    </div>
    <script>
        const vm = new Vue({

            data(){
                return{
                    msg: "<span style='color:pink'>今天天气真不错{{count}}</span>",
                    msg1: "今天天气真不错",
                    count: 0,
                }
            }

        })

        setTimeout(()=>{
            vm.$mount("#app")
        },500)
    </script>
</body>
</html>